package com.cskaoyan.mall.dao;

import com.cskaoyan.mall.model.UpdateUserPwd;
import com.cskaoyan.mall.model.admin.AdminLoginBO;
import com.cskaoyan.mall.model.user.User;
import com.cskaoyan.mall.model.user.UserForUpdate;

import java.util.List;

/**
 * @author: jyf2000jyf
 */
public interface UserDao {
    List<User> getAllUser();

    boolean deleteUser(int id);

    List<User> getSearchUser(String word);

    int login(AdminLoginBO adminLoginBO);

    boolean addUser(User user);

    Integer getUserIdByUsername(String username);

    String getUserNickname(AdminLoginBO adminLoginBO);

    User getUserByUsername(String token);

    UserForUpdate getUserByUserName(String token);

    boolean updateUserData(UserForUpdate userForUpdate);

    String updatePwd(UpdateUserPwd pwd);
}
